package com.lesso.lll.sunflower.app.service.impl;


import com.lesso.lll.sunflower.domain.service.EmployeeDomainService;
import com.lesso.lll.sunflower.pojo.dto.EmployeeDTO;
import com.lesso.lll.sunflower.service.IEmployeeService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * EmployeeServiceImpl
 *
 * @author lll
 * @since 2025-07-02
 */
@Service
@DubboService
public class EmployeeServiceImpl implements IEmployeeService {
    private final EmployeeDomainService employeeDomainService;

    public EmployeeServiceImpl(EmployeeDomainService employeeDomainService) {
        this.employeeDomainService = employeeDomainService;
    }

    @Override
    public Integer save(EmployeeDTO dto) {
        return employeeDomainService.save(dto);
    }
}
